﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1.Models
{
    public class DeviceType
    {

        

        public enum DeviceTypeEnum { 外置局放, 动态增容, 接地电阻 }

        public string TerminalId { get; set; }

        public long DeviceId { get; set; }

        public DeviceTypeEnum Type { get; set; }

        public DeviceType()
        {

        }

        public DeviceType(string terminalId, DeviceTypeEnum type)
        {
            this.TerminalId = terminalId;
            this.DeviceId = Convert.ToInt64(terminalId,16);
            this.Type = type;   
        }
    }
}
